package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.BasisList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: IEIS2-COM
 * @Package: com.indusfo.spc.mapper
 * @ClassName: BasisListMapper
 * @Author: 熊冰
 * @Description: 工艺文件库 数据层
 * @Date: 2019/8/26 14:35
 * @Version: 1.0
 */
public interface BasisListMapper {
    // 增加
    int insertSelective(BasisList record);

    // 修改
    int updateByPrimaryKeySelective(BasisList record);

    // 多数据删除
    int deleteBasisList(@Param("deteBasisList") Long[] deteBasisList, @Param("lDataState") Integer lDataState);

    // 按要求查询
    List<BasisList> selectAllBasisList(BasisList record);

    // 按要求查询总数
    int countBasisList(BasisList record);

    // 检验是否为空
    int countParamsNotRepeat(BasisList record);
    // 检验是否为空
    int countCheckNotRepeat(BasisList record);

    List<BasisList> queryAllPro(BasisList record);

    int updateBasisLists(@Param("basisLists")List<BasisList> addBasisLists);
}